package cn.guet.spider.elong.entity;

import java.io.Serializable;

import org.apache.ibatis.type.Alias;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

/**
 * 艺龙酒店
 *
 * @author SAGITTAR
 */
@Alias(value = "ELongHotel")
@TableName(value = "hotel")
public class LongHotel extends Model<LongHotel> {

    private static final long serialVersionUID = 6087736501698509547L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @TableField(value = "hotel_name")
    private String name;

    @Override
    protected Serializable pkVal() {
        return id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
